home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Complete Linux
/
Complete Linux.iso
/
docs
/
system
/
mail
/
transpor
/
ifmail23.z
/
ifmail23
/
ifmail
/
ifcico
/
lastmtime.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
C/C++ Source or Header
|
1993-09-11
|
314 b
|
23 lines
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
int main(argc,argv)
int argc;
char *argv[];
{
struct stat st;
time_t t=0L;
int i=1;
while (argv[i])
{
if (stat(argv[i],&st) == 0)
if (st.st_mtime > t) t=st.st_mtime;
i++;
}
if (t == 0L) time(&t);
printf("%s",ctime(&t));
return 0;
}